package com.example.ribbon.controller;

import com.example.ribbon.service.HellowService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HellowController {

    @Autowired
    HellowService hellowService;

    @RequestMapping("/hellow")
    public String hellow(@RequestParam String name){
        return hellowService.hellow(name);
    }

    @RequestMapping("/hellow2")
    public String hellow2(@RequestParam String name){
        return hellowService.hellow2(name);
    }
}
